import ajax from '@/utils/ajax'
import dialog from '@/utils/dialog'
import cookie from '@/utils/cookie'

export default function (query) {
  const iphone = cookie.getCookie('name');
  return ajax({
    url: `/f/empOrder/empInfo?iphone=${iphone}`,
    data: {
      iphone
    },
  }).then((resData) => {
    if (resData) {
      return resData
    } else {
      throw ''
    }
  }).catch(msg => dialog.showToast(msg || '请求失败'))
}
